package com.easemob.analytics;

import com.easemob.util.EMLog;

public class EMPerformanceCollector extends EMCollector
{
  public static final String TAG = "[Collector][Perf]";
  public static final String RETRIEVE_GROUPS = "retrieve groups from server time";
  public static final String LOADING_ALL_CONVERSATIONS = "load all conversations time";
  public static final String LOAD_ALL_LOCAL_GROUPS = "load all local groups";
  public static final String RETRIEVE_ROSTER = "retrieve roster";
  public static final String DOWNLOAD_FILE = "download file time";
  public static final String UPLOAD_FILE = "upload file time";

  public static void collectRetrieveGroupsFromServerTime(int paramInt, long paramLong)
  {
    EMLog.d("[Collector][Perf]" + getTagPrefix("retrieve groups from server time"), "time spent on loading groups size : " + paramInt + " with time spent : " + timeToString(paramLong));
  }

  public static void collectSyncWithLocalGroup(int paramInt, long paramLong)
  {
  }

  public static void collectLoadingAllConversations(int paramInt1, int paramInt2, long paramLong)
  {
    EMLog.d("[Collector][Perf]" + getTagPrefix("load all conversations time"), "time spent on loading all conversations : conversation size " + paramInt1 + " messages count : " + paramInt2 + " with time spent : " + timeToString(paramLong));
  }

  public static void collectLoadAllLocalGroups(int paramInt, long paramLong)
  {
    EMLog.d("[Collector][Perf]" + getTagPrefix("load all local groups"), "load all local group with size : " + paramInt + " timeSpent : " + timeToString(paramLong));
  }

  public static void collectRetrieveRoster(int paramInt, long paramLong)
  {
    EMLog.d("[Collector][Perf]" + getTagPrefix("retrieve roster"), "retrieve roster with size : " + paramInt + " timeSpent : " + timeToString(paramLong));
  }

  public static void collectDownloadFileTime(EMTimeTag paramEMTimeTag, long paramLong, String paramString)
  {
    EMLog.d("[Collector][Perf]" + getTagPrefix("download file time"), "download file : " + paramString + " size : " + paramLong + " time spent : " + paramEMTimeTag.timeStr() + " speed(bytes/s) : " + paramLong / paramEMTimeTag.timeSpent() * 1000L);
  }

  public static void collectUploadFileTime(EMTimeTag paramEMTimeTag, long paramLong, String paramString)
  {
    EMLog.d("[Collector][Perf]" + getTagPrefix("upload file time"), "upload file : " + paramString + " size : " + paramLong + " time spent : " + paramEMTimeTag.timeStr() + " speed(bytes/s) : " + paramLong / paramEMTimeTag.timeSpent() * 1000L);
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.analytics.EMPerformanceCollector
 * JD-Core Version:    0.6.1
 */